<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>para</title>
    <script type="text/javascript" src="/lib/require.js"></script>
</head>
<body  style="background-image: url(/img/title/bg-new.jpg);background-size: 1920px 1080px;">
    <div id="lv1_menu" style="position: absolute; width: 1520px; height: 40px; left: 222px; top: 0px; ">
        <station_lv1></station_lv1>
    </div>
    <div id="lv2_menu" style="position: absolute; width: 1520px; height: 25px; left: 222px; top: 40px; ">
        <station_lv2></station_lv2>
    </div>
<script>
    require.config({
        urlArgs : "v1.0",
        baseUrl: "/lib",
        paths: {
            'vue': 'vue.min',
            'text': 'text.min',
            'vuex': 'vuex',
            'hello': '/components/hello',
            'station_lv1':'/components/station_lv1',
            'sdata':'Sdata'
        },
        waitSeconds: 0
    });

    require(['vue','vuex', 'station_lv1','sdata'], function (Vue,Vuex,station_lv1,sdata){
        console.log('index require')
        Vue.use(Vuex)
        /* 初始化vuex状态信息 */
        let state = {
            currentLv1:'plan'
        }
        let mutations = {
            setCurrentLv1 (state, lv1btn) {
                state.currentLv1 = lv1btn
            }
        }
        let _storeObj = new Vuex.Store({
            "state":state,
            "mutations":mutations
        })
        Vue.component('station_lv1', station_lv1.vueExtend);
        window.sdata = sdata;
        sdata.refCount = 100;
        let temp = new Vue({el:'#lv1_menu',store:_storeObj})
        window.vue = temp
        console.log('end')
    });
</script>
</body>
</html>